From: Jan Beulich Date: Fri, 12 May 2017 06:52:54 +0000 (-0600) Subject: include: fix build without C++ compiler installed X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2152 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=b231884da805d21156163d3ea2ef4de2e9f65fb0;p=xen.git include: fix build without C++ compiler installed The rule for headers++.chk wants to move headers++.chk.new to the designated target, which means we have to create that file in the first place. Signed-off-by: Jan Beulich Reviewed-by: Wei Liu Release-acked-by: Julien Grall --- diff --git a/xen/include/Makefile b/xen/include/Makefile index cd271dde0a..3a6fa0fd59 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -120,7 +120,10 @@ headers99.chk: $(PUBLIC_C99_HEADERS) Makefile headers++.chk: $(PUBLIC_HEADERS) Makefile rm -f $@.new - $(CXX) -v >/dev/null 2>&1 || exit 0; \ + if ! $(CXX) -v >/dev/null 2>&1; then \ + touch $@.new; \ + exit 0; \ + fi; \ $(foreach i, $(filter %.h,$^), \ echo "#include "\"$(i)\" \ | $(CXX) -x c++ -std=gnu++98 -Wall -Werror -D__XEN_TOOLS__ \